package com.usian.admin.feign;

import com.usian.model.article.pojos.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: ApAuthorClient
 * Author:   WGG
 * Date:    2022-11-2022/11/23-20:48
 * Version: 1.0
 * Description:
 */
@FeignClient("leadnews-article")
public interface ApAuthorClient {
    @GetMapping("/article/api/v1/getByAuthor/{id}")
    public ApAuthor getByAuthor(@PathVariable Integer id);
}
